import { BrowserModule } from '@angular/platform-browser';
import { ErrorHandler, NgModule } from '@angular/core';
import { HttpModule }    from '@angular/http';

import { IonicApp, IonicErrorHandler, IonicModule } from 'ionic-angular';

import { SplashScreen } from '@ionic-native/splash-screen';
import { StatusBar } from '@ionic-native/status-bar';

import { MyApp } from './app.component';

import { HomePage } from '../pages/home/home';
import { Login } from '../pages/login/login';
import { Register } from '../pages/register/register';
import { MyPage } from '../pages/tabs/my/my';
import { MyRootPage } from '../pages/tabs/my/root/root';
import { MyModifyPage } from '../pages/tabs/my/modify/modify';
import { MyModifyPwdPage } from '../pages/tabs/my/pwd/pwd';
import { MyChatPage } from '../pages/tabs/my/chat/chat';
import { OrderRootPage } from '../pages/tabs/order/root';
import { OrderPage } from '../pages/tabs/order/order/order';
import { ScanPage } from '../pages/tabs/order/scan/scan';
import { OrderDetailPage } from '../pages/tabs/order/detail/detail';
import { OrderPublicPage } from '../pages/tabs/order/public/public';
import { OrderModifyPage } from '../pages/tabs/order/modify/modify';
import { OrderCommentPage } from '../pages/tabs/order/comment/comment';
import { FactoryListPage } from '../pages/tabs/factory/list/list';
import { FactoryDetailPage } from '../pages/tabs/factory/detail/detail';
import { FactoryPage } from '../pages/tabs/factory/factory';


import { OrderPhotoServices } from '../providers/photo-service'
import { AuthService } from '../providers/auth-service';
import { FactoryService } from '../providers/factory-service';
import { OrderService } from '../providers/order-service'
import { DictionaryService } from '../providers/dictionary-service'




@NgModule({
  declarations: [
    MyApp,
    MyPage,
    MyRootPage,
    MyModifyPage,
    MyModifyPwdPage,
    MyChatPage,
    ScanPage,
    OrderDetailPage,
    OrderPage,
    OrderPublicPage,
    OrderModifyPage,
    OrderCommentPage,
    OrderRootPage,
    FactoryPage,
    FactoryListPage,
    FactoryDetailPage,
    HomePage,
    Login,
    Register
  ],
  imports: [
    BrowserModule,
    HttpModule,
    IonicModule.forRoot(MyApp)
  ],
  bootstrap: [IonicApp],
  entryComponents: [
    MyPage,
    MyRootPage,
    MyModifyPage,
    MyModifyPwdPage,
    MyChatPage,
    MyApp,
    OrderPage,
    ScanPage,
    OrderDetailPage,
    OrderCommentPage,
    OrderModifyPage,
    OrderPublicPage,
    OrderRootPage,
    FactoryPage,
    FactoryListPage,
    FactoryDetailPage,
    HomePage,
    Login,
    Register
  ],
  providers: [
    StatusBar,
    SplashScreen,
    OrderPhotoServices,
    AuthService,
    DictionaryService,
    FactoryService,
    OrderService,
    { provide: ErrorHandler, useClass: IonicErrorHandler }
  ]
})
export class AppModule {}
